/*import axios from 'axios';
async function getData({store,params}){
    const [caro,list] = await Promise.all([ 
        axios.get('/indexs'),
        axios.get('/list')
    ]);
    store.commit('setIndexData',caro.data.data);
    store.commit('setListData',list.data.data);
}
export default getData
export default function ({ store, redirect }) {路由鉴权重定向
  if (!store.state.user) {
    return redirect('/login')
  }
}*/ 
export default function ({ store, error }) {
    if (!store.state.user) {
      error({
        message: 'You are not logined',
        statusCode: 403
      })
    }
  }